package food;

public enum FoodItem {
	ANCHOVIES(new FoodPiece("Anchovies", 10)),
	CABBAGE(new FoodPiece("Cabbage", 10)),
	CRAYFISH(new FoodPiece("Crayfish", 10)),
	EQUA_LEAVES(new FoodPiece("Equa leaves", 10)),
	ONION(new FoodPiece("Onion", 10)),
	POTATO(new FoodPiece("Potato", 1)),
	BANANA(new FoodPiece("Banana", 20)),
	CHEESE(new FoodPiece("Cheese", 20)),
	DWELLBERRIES(new FoodPiece("Dwellberries", 20)),
	JANGERBERRIES(new FoodPiece("Jangerberries", 20)),
	LIME(new FoodPiece("Lime", 20)),
	LEMON(new FoodPiece("Lemon", 20)),
	ORANGE(new FoodPiece("Orange", 20)),
	SPICY_SAUCE(new FoodPiece("Spicy sauce", 20)),
	SPICY_TOMATO(new FoodPiece("Spicy tomato", 20)),
	SPINACH_ROLL(new FoodPiece("Spinach roll", 20)),
	TOMATO(new FoodPiece("Tomato", 20)),
	BEAR_MEAT(new FoodPiece("Bear meat", 30)),
	COOKED_CHICKEN(new FoodPiece("Cooked chicken", 30)),
	CHOCOLATE_BAR(new FoodPiece("Chocolate bar", 30)),
	KARAMBWANJI(new FoodPiece("Karambwanji", 30)),
	COOKED_MEAT(new FoodPiece("Cooked meat", 30)),
	RAT_MEAT(new FoodPiece("Rat meat", 30)),
	SHRIMPS(new FoodPiece("Shrimps", 30)),
	SPICY_MEAT(new FoodPiece("Spicy meat", 30)),
	UGHTHANKI_MEAT(new FoodPiece("Ughthanki meat", 30)),
	BAKED_POTATO(new FoodPiece("Baked potato", 40)),
	SARDINE(new FoodPiece("Sardine", 40)),
	BREAD(new FoodPiece("Bread", 50)),
	CHILI_CON_CARNE(new FoodPiece("Chili con carne", 50)),
	COOKED_RABBIT(new FoodPiece("Cooked rabbit", 50)),
	HERRING(new FoodPiece("Herring", 50)),
	FRIED_MUSHROOMS(new FoodPiece("Fried mushrooms", 50)),
	FRIED_ONIONS(new FoodPiece("Fried onions", 50)),
	SCRAMBLED_EGG(new FoodPiece("Scrambled egg", 50)),
	THIN_SNAIL(new FoodPiece("Thin snail", 60)),
	SKEWERED_KEBAB(new FoodPiece("Skewered kebab", 60)),
	LEAN_SNAIL(new FoodPiece("Lean snail", 70)),
	MACKEREL(new FoodPiece("Mackerel", 60)),
	SPIT_ROAST_BIRD_MEAT(new FoodPiece("Spit-roast bird meat", 60)),
	CHOC_CHIP_CRUNCHIES(new FoodPiece("Choc chip crunchies", 70)),
	CHOC_ICE(new FoodPiece("Choc ice", 70)),
	COD(new FoodPiece("Cod", 70)),
	FAT_SNAIL(new FoodPiece("Fat snail", 70)),
	SPICY_CRUNCHIES(new FoodPiece("Spicy crunchies", 70)),
	SPIT_ROAST_RABBIT(new FoodPiece("Spit-roast rabbit", 70)),
	TROUT(new FoodPiece("Trout", 70)),
	BEAST_MEAT(new FoodPiece("Beast meat", 80)),
	SLIMY_EEL(new FoodPiece("Slimy eel", 80)),
	EGG_AND_TOMATO(new FoodPiece("Egg and tomato", 80)),
	PAPAYA(new FoodPiece("Papaya", 80)),
	PEACH(new FoodPiece("Peach", 80)),
	PIKE(new FoodPiece("Pike", 80)),
	TOAD_CRUNCHIES(new FoodPiece("Toad crunchies", 80)),
	WORM_CRUNCHIES(new FoodPiece("Worm crunchies", 80)),
	SPIDER_ON_STICK(new FoodPiece("Spider on stick", 90)),
	SALMON(new FoodPiece("Salmon", 90)),
	JUG_OF_WINE(new FoodPiece("Jug of wine", 90)),
	CAVE_EEL(new FoodPiece("Cave eel", 100)),
	CHOMPY(new FoodPiece("Chompy", 100)),
	CRAB_MEAT(new FoodPiece("Crab meat", 50)),
	REDBERRY_PIE(new FoodPiece("Redberry pie", 100), new FoodPiece("Half a redberry pie", 5)),
	TUNA(new FoodPiece("Tuna", 100)),
	CHEESE_AND_TOMATO_BATTA(new FoodPiece("Cheese and tomato batta", 110)),
	FISHCAKE(new FoodPiece("Fishcake", 110)),
	FRUIT_BATTA(new FoodPiece("Fruit batta", 110)),
	LAVA_EEL(new FoodPiece("Lava eel", 110)),
	MEAT_PIE(new FoodPiece("Meat pie", 100), new FoodPiece("Half a meat pie", 50)),
	MUSHROOM_AND_ONION(new FoodPiece("Mushroom and onion", 110)),
	STEW(new FoodPiece("Stew", 110)),
	TOAD_BATTA(new FoodPiece("Toad batta", 101)),
	VEGETABLE_BATTA(new FoodPiece("Vegetable batta", 110)),
	WORM_BATTA(new FoodPiece("Worm batta", 110)),
	CAKE(new FoodPiece("Cake", 120), new FoodPiece("2/3 cake", 40), new FoodPiece("Slice of cake", 40)),
	FISH_PIE(new FoodPiece("Fish pie", 80), new FoodPiece("Half a fish pie", 40), new FoodPiece("Part fish pie", 40)),
	GARDEN_PIE(new FoodPiece("Garden pie", 80), new FoodPiece("Half a garden pie", 40), new FoodPiece(
			"Part garden pie", 40)),
	LOBSTER(new FoodPiece("Lobster", 120)),
	VEGBALL(new FoodPiece("Vegball", 120)),
	WORMHOLE(new FoodPiece("Wormhole", 120)),
	BASS(new FoodPiece("Bass", 130)),
	TUNA_AND_CORN(new FoodPiece("Tuna and corn", 130)),
	APPLE_PIE(new FoodPiece("Apple pie", 140), new FoodPiece("Half an apple pie", 70)),
	CHILLI_POTATO(new FoodPiece("Chilli potato", 140)),
	OOMLIE_WRAP(new FoodPiece("Oomlie wrap", 140)),
	PLAIN_PIZZA(new FoodPiece("Plain pizza", 140), new FoodPiece("1/2 plain pizza", 70)),
	POTATO_WITH_BUTTER(new FoodPiece("Potato with butter", 140)),
	SWORDFISH(new FoodPiece("Swordfish", 140)),
	CHOCOLATE_BOMB(new FoodPiece("Chocolate bomb", 150), new FoodPiece("2/3 chocolate cake", 50), new FoodPiece(
			"Chocolate slice", 50)),
	JUBBLY(new FoodPiece("Jubbly", 150)),
	TANGLED_TOADS_LEGS(new FoodPiece("Tangled toads' legs", 160)),
	EGG_POTATO(new FoodPiece("Egg potato", 160)),
	MEAT_PIZZA(new FoodPiece("1/2 meat pizza", 80), new FoodPiece("Meat pizza", 160)),
	MONKFISH(new FoodPiece("Monkfish", 160)),
	POTATO_WITH_CHEESE(new FoodPiece("Potato with cheese", 160)),
	ANCHOVY_PIZZA(new FoodPiece("Anchovy pizza", 180), new FoodPiece("1/2 anchovy pizza", 90)),
	EVIL_TURNIP(new FoodPiece("Evil turnip", 180), new FoodPiece("2/3 evil turnip", 60), new FoodPiece(
			"1/3 evil turnip", 60)),
	KARAMBWAN(new FoodPiece("Karambwan", 180)),
	CURRY(new FoodPiece("Curry", 190)),
	UGHTHANKI_KEBAB(new FoodPiece("Ugthanki kebab", 190)),
	MUSHROOM_POTATO(new FoodPiece("Mushroom potato", 200)),
	SHARK(new FoodPiece("Shark", 200)),
	CAVEFISH(new FoodPiece("Cavefish", 200)),
	SEA_TURTLE(new FoodPiece("Sea turtle", 210)),
	MANTA_RAY(new FoodPiece("Manta ray", 220)),
	PINEAPPLE_PIZZA(new FoodPiece("Pineapple pizza", 220), new FoodPiece("1/2 p'apple pizza", 110)),
	SUMMER_PIE(new FoodPiece("Part summer pie", 110), new FoodPiece("Half a summer pie", 110), new FoodPiece(
			"Summer pie", 220)),
	TUNA_POTATO(new FoodPiece("Tuna potato", 220)),
	WILD_PIE(new FoodPiece("Wild pie", 220), new FoodPiece("Half a wild pie", 110), new FoodPiece("Part wild pie", 110)),
	ROCKTAIL(new FoodPiece("Rocktail", 230)),
	STRAWBERRY(new FoodPiece("Strawberry", 50)),
	SWEETCORN(new FoodPiece("Sweetcorn", 50)),
	WATERMELON_SLICE(new FoodPiece("Watermelon slice", 50)),
	FROGSPAWN(new FoodPiece("Frogspawn", 50)),
	KEBAB(new FoodPiece("Kebab", 50)),
	SARADOMIN_BREW(new FoodPiece("Saradomin brew (1)", 150), new FoodPiece("Saradomin brew (2)", 150), new FoodPiece(
			"Saradomin brew (3)", 150), new FoodPiece("Saradomin brew (4)", 150));
	;

	private FoodPiece[] pieces;

	FoodItem(FoodPiece... pieces) {
		this.pieces = pieces;
	}

	public FoodPiece[] getPieces() {
		return pieces;
	}

	public void setPieces(FoodPiece... pieces) {
		this.pieces = pieces;
	}

	public String getName() {
		return name().contains("_") ? name().replaceAll("_", " ").toLowerCase() : name().toLowerCase();
	}
}